package day9.Exer;

public class Customer {
    private String custName;
    private String custPhone;
    private String custDate;
    private String carNo;//记录客户租的车牌
    private int day;//记录租借天数
    public Customer(String custName, String custPhone, String custDate,String carNo,int day) {
        this.custName = custName;
        this.custPhone = custPhone;
        this.custDate = custDate;
        this.carNo=carNo;
        this.day=day;
    }

    public String getCarNo() {
        return carNo;
    }

    public void setCarNo(String carNo) {
        this.carNo = carNo;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    public String getCustName() {
        return custName;
    }

    public void setCustName(String custName) {
        this.custName = custName;
    }

    public String getCustPhone() {
        return custPhone;
    }

    public void setCustPhone(String custPhone) {
        this.custPhone = custPhone;
    }

    public String getCustDate() {
        return custDate;
    }

    public void setCustDate(String custDate) {
        this.custDate = custDate;
    }

    public void showrentcarinfo(Car a){
        System.out.println("客户："+getCustName()+",手机号："+getCustPhone()+",租车日期："+getCustDate()+"租赁的车牌号为"+a.getCarNo());
    }
}
